<html><head><meta charset="UTF-8" /><script>var $gwt_version = "2.3.0";var $wnd = parent;var $doc = $wnd.document;var $moduleName, $moduleBase;var $strongName = 'B65E60BDCA7C9FA0EC203A562DEA2B70';var $stats = $wnd.__gwtStatsEvent ? function(a) {return $wnd.__gwtStatsEvent(a);} : null,$sessionId = $wnd.__gwtStatsSessionId ? $wnd.__gwtStatsSessionId : null;$stats && $stats({moduleName:'boarddemo',sessionId:$sessionId,subSystem:'startup',evtGroup:'moduleStartup',millis:(new Date()).getTime(),type:'moduleEvalStart'});</script></head><body><script><!--
function p(){}
function o(){}
function n(){}
function m(){}
function l(){}
function I(){}
function J(){}
function H(){}
function Q(){}
function P(){}
function O(){}
function N(){}
function U(){}
function _i(){}
function fb(){}
function ab(){}
function ob(){}
function kb(){}
function tb(){}
function Ab(){}
function sb(){}
function Qb(){}
function Pb(){}
function Ob(){}
function Nb(){}
function Mb(){}
function Yb(){}
function Lb(){}
function _b(){}
function $b(){}
function ac(){}
function fc(){}
function jc(){}
function hc(){}
function nc(){}
function sc(){}
function rc(){}
function qc(){}
function Cc(){}
function Bc(){}
function Ec(){}
function Dc(){}
function Kc(){}
function Jc(){}
function Tc(){}
function Sc(){}
function Jd(){}
function Pd(){}
function de(){}
function ce(){}
function be(){}
function ne(){}
function ue(){}
function te(){}
function xe(){}
function we(){}
function Ae(){}
function ze(){}
function Ce(){}
function Ee(){}
function Le(){}
function Me(){}
function Qe(){}
function Se(){}
function Xe(){}
function We(){}
function $e(){}
function jf(){}
function hf(){}
function mf(){}
function lf(){}
function nf(){}
function pf(){}
function tf(){}
function Bf(){}
function Hf(){}
function Gf(){}
function If(){}
function Kf(){}
function Nf(){}
function Qf(){}
function Tf(){}
function Zf(){}
function bg(){}
function ag(){}
function cg(){}
function og(){}
function qg(){}
function tg(){}
function sg(){}
function ug(){}
function wg(){}
function yg(){}
function Bg(){}
function Eg(){}
function Sg(){}
function Ug(){}
function $g(){}
function Zg(){}
function th(){}
function sh(){}
function Bh(){}
function Gh(){}
function Fh(){}
function Nh(){}
function Sh(){}
function ai(){}
function gi(){}
function ji(){}
function oi(){}
function si(){}
function Fi(){}
function Ei(){}
function Ji(){}
function Mi(){}
function Ti(){}
function Yi(){}
function Fg(a){}
function xg(a){mb()}
function Ag(a){mb()}
function Dg(a){mb()}
function Tg(a){mb()}
function rg(){mb()}
function vg(){mb()}
function zg(){mb()}
function Cg(){mb()}
function S(){mb()}
function Zi(){mb()}
function Md(){Ld()}
function Li(){eh(this)}
function F(a){this.o=a}
function Ne(a){this.b=a}
function Re(a){this.b=a}
function Rf(a){this.b=a}
function Of(a){this.b=a}
function Yf(a){this.b=a}
function Df(a){this.c=a}
function xh(a){this.b=a}
function Jh(a){this.b=a}
function pi(a){this.b=a}
function di(a){this.d=a}
function gc(){this.b={}}
function dc(){this.d=++bc}
function Rc(a,b){this.b=b}
function Oi(){this.b=new Li}
function Di(){Di=_i;Ci=new Fi}
function cb(){cb=_i;bb=new fb}
function Ld(){Ld=_i;Kd=new dc}
function Og(){Og=_i;Lg={};Ng={}}
function Gc(a){Fc.call(this,a)}
function re(a){Fc.call(this,a)}
function ke(a,b){ge(a,b,a.o)}
function uf(a,b){wf(a,b,a.c)}
function Ad(a,b){Td();_d(a,b)}
function t(a,b){!!a.k&&oc(a.k,b)}
function pg(a,b){this.b=a;this.c=b}
function ki(a,b){this.b=a;this.c=b}
function Ui(a,b){this.b=a;this.c=b}
function Oh(a,b){this.c=a;this.b=b}
function pc(a){this.b=new Ac;this.c=a}
function Qd(){this.b=new Ac;this.c=null}
function Ac(){this.e=new Li;this.d=false}
function qe(){qe=_i;oe=new ue;pe=new xe}
function Xb(){Xb=_i;Wb=new ec(new Yb)}
function bi(a){return a.c<a.d.J()}
function dd(a,b){return a.cM&&a.cM[b]}
function jh(b,a){return ej+a in b.f}
function X(a,b,c){return a.apply(b,c);var d}
function vc(a,b,c){var d;d=xc(a,b);d.H(c)}
function Vh(a,b){(a<0||a>=b)&&Yh(a,b)}
function Gd(){if(!Cd){ae();Cd=true}}
function Td(){if(!Rd){$d();Rd=true}}
function of(){df.call(this,$doc.body)}
function zf(){this.b=Wc(md,{20:1},9,4,0)}
function vi(){this.b=Wc(qd,{20:1},0,0,0)}
function T(a){mb();this.b=a;lb(new Ab,this)}
function Jf(a,b,c){this.b=a;this.d=b;this.c=c}
function df(a){this.g=new zf;this.o=a;u(this)}
function tc(a,b){!a.b&&(a.b=new vi);ti(a.b,b)}
function lc(a){var b;if(ic){b=new jc;oc(a,b)}}
function Hd(){Cd&&lc((!Dd&&(Dd=new Qd),Dd))}
function ad(){ad=_i;$c=[];_c=[];bd(new Tc,$c,_c)}
function cf(){cf=_i;_e=new jf;af=new Li;bf=new Oi}
function _g(a){var b;b=new xh(a);return new ki(a,b)}
function Ni(a,b){var c;c=kh(a.b,b,a);return c==null}
function ti(a,b){Zc(a.b,a.c++,b);return true}
function jb(a,b){a.length>=b&&a.splice(0,b);return a}
function gb(a,b){!a&&(a=[]);a[a.length]=b;return a}
function nb(){try{null.a()}catch(a){return a}}
function id(a){if(a!=null){throw new vg}return null}
function Rg(){if(Mg==256){Lg=Ng;Ng={};Mg=0}++Mg}
function Ge(a){this.b=a;this.c=Hc(a);this.d=this.c}
function _f(a,b){this.c=a;this.d=b;this.b='grassland'}
function gd(a,b){return a!=null&&a.cM&&!!a.cM[b]}
function Ud(a){return !hd(a)&&a!=null&&a.cM&&!!a.cM[8]}
function hd(a){return a!=null&&a.tM!=_i&&!(a.cM&&!!a.cM[1])}
function Ed(a){Gd();return Fd(ic?ic:(ic=new dc),a)}
function eh(a){a.b=[];a.f={};a.d=false;a.c=null;a.e=0}
function le(a){a.style[Hj]=bj;a.style[Ij]=bj;a.style[gj]=bj}
function y(a,b){a.j==-1?Ad(a.o,b|(a.o.__eventBits||0)):(a.j|=b)}
function ge(a,b,c){w(b);uf(a.g,b);c.appendChild(b.o);x(b,a)}
function yf(a,b){var c;c=vf(a,b);if(c==-1){throw new Zi}xf(a,c)}
function hi(a){if(a.c<=0){throw new Zi}return a.b.Q(--a.c)}
function ci(a){if(a.c>=a.d.J()){throw new Zi}return a.d.Q(a.c++)}
function Cf(a){if(a.b>=a.c.c){throw new Zi}return a.c.b[++a.b]}
function Yh(a,b){throw new Ag('Index: '+a+', Size: '+b)}
function Fd(a,b){return new Cc(uc((!Dd&&(Dd=new Qd),Dd).b,a,b))}
function oh(a,b){return !b?qh(a):ph(a,b,~~(b.$H||(b.$H=++W)))}
function ef(a){cf();try{v(a)}finally{oh(bf.b,a)!=null}}
function ff(){cf();try{se(bf,_e)}finally{eh(bf.b);eh(af)}}
function Y(){if(V++==0){db((cb(),bb));return true}return false}
function vd(a){if(a!=null&&a.cM&&!!a.cM[7]){return a}return new T(a)}
function ed(a,b){if(a!=null&&!(a.cM&&a.cM[b])){throw new vg}return a}
function mh(a,b){var c;c=a.c;a.c=b;if(!a.d){a.d=true;++a.e}return c}
function qh(a){var b;b=a.c;a.c=null;if(a.d){a.d=false;--a.e}return b}
function Uc(a,b){var c,d;c=a;d=Vc(0,b);Yc(c.aC,c.cM,c.qI,d);return d}
function Yc(a,b,c,d){ad();cd(d,$c,_c);d.aC=a;d.cM=b;d.qI=c;return d}
function ui(a,b,c){for(;c<a.c;++c){if($i(b,a.b[c])){return c}}return -1}
function vf(a,b){var c;for(c=0;c<a.c;++c){if(a.b[c]==b){return c}}return -1}
function Id(){var a;if(Cd){a=new Md;!!Dd&&oc(Dd,a);return null}return null}
function Fb(a){var b=a.parentNode;(!b||b.nodeType!=1)&&(b=null);return b}
function nh(e,a,b){var c,d=e.f;a=ej+a;a in d?(c=d[a]):++e.e;d[a]=b;return c}
function bd(a,b,c){var d=0,e;for(var f in a){if(e=a[f]){b[d]=f;c[d]=e;++d}}}
function cd(a,b,c){ad();for(var d=0,e=b.length;d<e;++d){a[b[d]]=c[d]}}
function Hb(a){return typeof a.tabIndex!='undefined'?a.tabIndex:-1}
function Pe(){Pe=_i;new Re('bottom');new Re('middle');Oe=new Re(Ij)}
function Mf(){this.g=new rf;this.b=new Ue;this.f=new Be;this.i=new Ye}
function ec(a){this.d=++bc;this.b=a;!Rb&&(Rb=new gc);Rb.b[kj]=this;this.c=kj}
function ii(a,b){var c;this.b=a;this.d=a;c=a.J();(b<0||b>c)&&Yh(b,c);this.c=b}
function K(a,b){var c;return c=a,c.tM==_i||c.cM&&!!c.cM[1]?c.eQ(b):c===b}
function L(a){var b;return b=a,b.tM==_i||b.cM&&!!b.cM[1]?b.hC():b.$H||(b.$H=++W)}
function fd(a){if(a!=null&&(a.tM==_i||a.cM&&!!a.cM[1])){throw new vg}return a}
function Gg(a,b){if(!(b!=null&&b.cM&&!!b.cM[1])){return false}return String(a)==b}
function ig(a,b,c){if(b>=0&&c>=0&&b<a.c&&c<a.b){return a.p[b][c]}return null}
function $f(a){var b;if(a.c==1&&a.d==1){b=new vi;ti(b,new bg);return b}return null}
function Ch(a){var b;b=new vi;a.d&&ti(b,new Jh(a));dh(a,b);ch(a,b);this.b=new di(b)}
function db(a){var b,c;if(a.b){c=null;do{b=a.b;a.b=null;c=hb(b,c)}while(a.b);a.b=c}}
function eb(a){var b,c;if(a.c){c=null;do{b=a.c;a.c=null;c=hb(b,c)}while(a.c);a.c=c}}
function Fe(a,b){a.b.textContent=b||bj;if(a.d!=a.c){a.d=a.c;Ic(a.b,a.c)}}
function s(a,b,c){y(a,Sd(c.c));return new Cc(uc((!a.k?(a.k=new pc(a)):a.k).b,c,b))}
function $(a,b,c){var d;d=Y();try{return X(a,b,c)}finally{d&&eb((cb(),bb));--V}}
function Z(b){return function(){try{return $(b,this,arguments)}catch(a){throw a}}}
function Ki(a,b){return (a==null?null:a)===(b==null?null:b)||a!=null&&K(a,b)}
function $i(a,b){return (a==null?null:a)===(b==null?null:b)||a!=null&&K(a,b)}
function fh(a,b){return b==null?a.d:b!=null&&b.cM&&!!b.cM[1]?jh(a,ed(b,1)):ih(a,b,~~L(b))}
function gh(a,b){return b==null?a.c:b!=null&&b.cM&&!!b.cM[1]?a.f[ej+ed(b,1)]:hh(a,b,~~L(b))}
function jg(a,b){var c;c=new pg(a.d+(b.d+b.c)*~~(a.o/2),a.e+(b.d-b.c)*~~(a.n/2));return c}
function yb(a){var b;b=jb(zb(a,nb()),3);b.length==0&&(b=jb((new ob).v(),1));return b}
function zb(a,b){var c;c=ub(a,b);return c.length==0?(new ob).x(b):(c.length>=1&&c.splice(0,1),c)}
function Hg(b,a){if(a==null)return false;return b==a||b.toLowerCase()==a.toLowerCase()}
function Ib(a,b){while(b){if(a==b){return true}b=b.parentNode;b&&b.nodeType!=1&&(b=null)}return false}
function zd(a,b,c){var d;d=xd;xd=a;b==yd&&Sd(a.type)==8192&&(yd=null);c.u(a);xd=d}
function Wc(a,b,c,d,e){var f;f=Vc(e,d);ad();cd(f,$c,_c);f.aC=a;f.cM=b;f.qI=c;return f}
function Vg(a,b){var c;while(a.F()){c=a.G();if(b==null?c==null:K(b,c)){return a}}return null}
function kg(a,b,c){var d;for(d=0;d<a.q.length;++d){if(mg(a,a.q[d],b,c)){return a.q[d]}}return null}
function G(){var a;!E&&(E=new J);a=$doc.createElement('canvas');if(!a.getContext){return null}return new F(a)}
function Ye(){this.o=$doc.createElement('div');this.b=new Ge(this.o);this.o[Jj]='gwt-Label'}
function rf(){De.call(this);this.b=(Ke(),He);this.c=(Pe(),Oe);this.f[Oj]=Pj;this.f[Qj]=Pj}
function Fc(a){S.call(this,a.J()==0?null:ed(a.K(Wc(sd,{16:1,20:1},7,0,0)),16)[0]);this.b=a}
function kh(a,b,c){return b==null?mh(a,c):b!=null&&b.cM&&!!b.cM[1]?nh(a,ed(b,1),c):lh(a,b,c,~~L(b))}
function gwtOnLoad(b,c,d,e){$moduleName=c;$moduleBase=d;if(b)try{aj(ud)()}catch(a){b(c)}else{aj(ud)()}}
function Ke(){Ke=_i;new Ne('center');new Ne('justify');Ie=new Ne(Hj);new Ne('right');Je=Ie;He=Je}
function Qc(){Qc=_i;Pc=new Rc('RTL',0);Oc=new Rc('LTR',1);Nc=new Rc('DEFAULT',2);Yc(ld,{20:1},23,[Pc,Oc,Nc])}
function xf(a,b){var c;if(b<0||b>=a.c){throw new zg}--a.c;for(c=b;c<a.c;++c){Zc(a.b,c,a.b[c+1])}Zc(a.b,a.c,null)}
function zc(a){var b,c;if(a.b){try{for(c=new di(a.b);c.c<c.d.J();){b=ed(ci(c),15);vc(b.b,b.d,b.c)}}finally{a.b=null}}}
function dh(e,a){var b=e.f;for(var c in b){if(c.charCodeAt(0)==58){var d=new Oh(e,c.substring(1));a.H(d)}}}
function Qg(a){Og();var b=ej+a;var c=Ng[b];if(c!=null){return c}c=Lg[b];c==null&&(c=Pg(a));Rg();return Ng[b]=c}
function yc(a,b){var c,d;d=ed(gh(a.e,b),13);if(!d){return Di(),Di(),Ci}c=ed(d.c,14);if(!c){return Di(),Di(),Ci}return c}
function xc(a,b){var c,d;d=ed(gh(a.e,b),13);if(!d){d=new Li;kh(a.e,b,d)}c=ed(d.c,14);if(!c){c=new vi;mh(d,c)}return c}
function ub(a,b){var c,d,e;e=b&&b.stack?b.stack.split('\n'):[];for(c=0,d=e.length;c<d;++c){e[c]=a.w(e[c])}return e}
function mb(){var a,b,c,d;c=yb(new Ab);d=Wc(rd,{20:1},30,c.length,0);for(a=0,b=d.length;a<b;++a){d[a]=new Fg(c[a])}R(d)}
function R(a){var b,c,d;c=Wc(rd,{20:1},30,a.length,0);for(d=0,b=a.length;d<b;++d){if(!a[d]){throw new Cg}c[d]=a[d]}}
function Sb(a,b,c){var d,e,f;if(Rb){f=ed(Rb.b[a.type],4);if(f){d=f.b.b;e=f.b.c;f.b.b=a;f.b.c=c;t(b,f.b);f.b.b=d;f.b.c=e}}}
function he(a,b){var c;if(b.n!=a){return false}try{x(b,null)}finally{c=b.o;Fb(c).removeChild(c);yf(a.g,b)}return true}
function wh(a,b){var c,d,e;if(b!=null&&b.cM&&!!b.cM[31]){c=ed(b,31);d=c.M();if(fh(a.b,d)){e=gh(a.b,d);return Ki(c.N(),e)}}return false}
function ih(h,a,b){var c=h.b[b];if(c){for(var d=0,e=c.length;d<e;++d){var f=c[d];var g=f.M();if(h.L(a,g)){return true}}}return false}
function hh(h,a,b){var c=h.b[b];if(c){for(var d=0,e=c.length;d<e;++d){var f=c[d];var g=f.M();if(h.L(a,g)){return f.N()}}}return null}
function ch(h,a){var b=h.b;for(var c in b){var d=parseInt(c,10);if(c==d){var e=b[d];for(var f=0,g=e.length;f<g;++f){a.H(e[f])}}}}
function lb(a,b){var c,d,e,f;e=zb(a,hd(b.b)?fd(b.b):null);f=Wc(rd,{20:1},30,e.length,0);for(c=0,d=f.length;c<d;++c){f[c]=new Fg(e[c])}R(f)}
function Ze(){Ye.call(this);Fe(this.b,"Sorry, your browser doesn't support the HTML5 Canvas element")}
function Xf(a){var b;b=a.b.createElement(Tj);b.src=a.b.URL.substr(0,a.b.URL.indexOf(Uj)-0)+'images/unit.png';return b}
function Te(a,b){var c,d;c=(d=$doc.createElement(Kj),d[Lj]=a.b.b,d.style[Mj]=a.d.b,d);a.c.appendChild(c);w(b);uf(a.g,b);c.appendChild(b.o);x(b,a)}
function De(){this.g=new zf;this.f=$doc.createElement('table');this.e=$doc.createElement('tbody');this.f.appendChild(this.e);this.o=this.f}
function Ue(){De.call(this);this.b=(Ke(),He);this.d=(Pe(),Oe);this.c=$doc.createElement(Nj);this.e.appendChild(this.c);this.f[Oj]=Pj;this.f[Qj]=Pj}
function ng(a,b,c){this.f=b;this.k=c;this.b=8;this.c=8;this.n=64;this.o=128;this.q=a;this.g=true;this.i=true;this.j=false}
function Hc(a){var b;b=a[lj]==null?null:String(a[lj]);if(Hg(fj,b)){return Qc(),Pc}else if(Hg(mj,b)){return Qc(),Oc}return Qc(),Nc}
function Ic(a,b){switch(b.b){case 0:{a[lj]=fj;break}case 1:{a[lj]=mj;break}case 2:{Hc(a)!=(Qc(),Nc)&&(a[lj]=bj,undefined);break}}}
function Ig(c){if(c.length==0||c[0]>Xj&&c[c.length-1]>Xj){return c}var a=c.replace(/^(\s*)/,bj);var b=a.replace(/\s*$/,bj);return b}
function Zc(a,b,c){if(c!=null){if(a.qI>0&&!dd(c,a.qI)){throw new rg}if(a.qI<0&&(c.tM==_i||c.cM&&!!c.cM[1])){throw new rg}}return a[b]=c}
function ib(a){var b,c,d;d=bj;a=Ig(a);b=a.indexOf(cj);if(b!=-1){c=a.indexOf('function')==0?8:0;d=Ig(a.substr(c,b-c))}return d.length>0?d:dj}
function Be(){var a;this.o=(a=$doc.createElement('BUTTON'),a.setAttribute('type','button'),a);this.o[Jj]='gwt-Button';this.o.innerHTML='Draw Board'}
function w(a){if(!a.n){(cf(),fh(bf.b,a))&&ef(a)}else if(a.n){a.n.D(a)}else if(a.n){throw new xg("This widget's parent does not implement HasWidgets")}}
function Wf(a,b){var c,d;d=a.b.createElement(Tj);~~(b.c/(b.d+1))%2==0?(c='1'):(c=Pj);d.src=a.b.URL.substr(0,a.b.URL.indexOf(Uj)-0)+Vj+b.b+'/center'+c+Wj;return d}
function Gb(a){if(a.ownerDocument.defaultView.getComputedStyle(a,bj).direction==fj){return (a.scrollLeft||0)-((a.scrollWidth||0)-a.clientWidth)}return a.scrollLeft||0}
function v(a){if(!a.i){throw new xg("Should only call onDetach when the widget is attached to the browser's document")}try{a.s()}finally{a.o.__listener=null;a.i=false}}
function gg(a,b){var c,d,e;c=jg(a,b);if($f(b)){for(e=new di($f(b));e.c<e.d.J();){ed(ci(e),22);d=Xf(a.k);a.f.drawImage(d,c.b-~~(d.width/2),c.c-d.height,d.width,d.height)}}}
function lg(a,b,c,d){var e,f,g,h;h=a.length;e=false;for(f=0,g=h-1;f<h;g=f++){(b[f]<=d&&d<b[g]||b[g]<=d&&d<b[f])&&c<~~((a[g]-a[f])*(d-b[f])/(b[g]-b[f]))+a[f]&&(e=!e)}return e}
function Xc(a,b,c,d,e,f,g){var h,i,j,k;j=d[e];i=e==f-1;k=Vc(i?g:0,j);ad();cd(k,$c,_c);k.aC=a[e];k.cM=b[e];k.qI=c[e];if(!i){++e;for(h=0;h<j;++h){k[h]=Xc(a,b,c,d,e,f,g)}}return k}
function x(a,b){var c;c=a.n;if(!b){try{!!c&&c.i&&v(a)}finally{a.n=null}}else{if(c){throw new xg('Cannot set a new parent without first clearing the old parent')}a.n=b;b.i&&a.t()}}
function dg(a,b){var c;c=Wc(od,{20:1},27,4,0);c[0]=new pg(b.b-~~(a.o/2),b.c);c[1]=new pg(b.b,b.c-~~(a.n/2));c[2]=new pg(b.b+~~(a.o/2),b.c);c[3]=new pg(b.b,b.c+~~(a.n/2));return c}
function ph(h,a,b){var c=h.b[b];if(c){for(var d=0,e=c.length;d<e;++d){var f=c[d];var g=f.M();if(h.L(a,g)){c.length==1?delete h.b[b]:c.splice(d,1);--h.e;return f.N()}}}return null}
function lh(j,a,b,c){var d=j.b[c];if(d){for(var e=0,f=d.length;e<f;++e){var g=d[e];var h=g.M();if(j.L(a,h)){var i=g.N();g.O(b);return i}}}else{d=j.b[c]=[]}var g=new Ui(a,b);d.push(g);++j.e;return null}
function Vc(a,b){var c=new Array(b);if(a==3){for(var d=0;d<b;++d){var e=new Object;e.l=e.m=e.h=0;c[d]=e}}else if(a>0){var e=[null,0,false][a];for(var d=0;d<b;++d){c[d]=e}}return c}
function wd(a){return $stats({moduleName:$moduleName,sessionId:$sessionId,subSystem:'startup',evtGroup:'moduleStartup',millis:(new Date).getTime(),type:'onModuleLoadStart',className:a})}
function qf(a,b){var c,d,e;d=$doc.createElement(Nj);c=(e=$doc.createElement(Kj),e[Lj]=a.b.b,e.style[Mj]=a.c.b,e);d.appendChild(c);a.e.appendChild(d);w(b);uf(a.g,b);c.appendChild(b.o);x(b,a)}
function oc(b,c){var a,d,e;!c.d||(c.d=false,c.e=null);e=c.e;c.e=b.c;try{wc(b.b,c)}catch(a){a=vd(a);if(gd(a,6)){d=a;throw new Gc(d.b)}else throw a}finally{e==null?(c.d=true,c.e=null):(c.e=e)}}
function se(b,c){var h;qe();var a,d,e,f,g;d=null;for(g=b.C();g.F();){f=ed(g.G(),9);try{c.E(f)}catch(a){a=vd(a);if(gd(a,7)){e=a;!d&&(d=new Oi);h=kh(d.b,e,d)}else throw a}}if(d){throw new re(d)}}
function hb(b,c){var a,d,e,f;for(d=0,e=b.length;d<e;++d){f=b[d];try{f[1]?f[0].T()&&(c=gb(c,f)):($wnd.__gwt_initWindowCloseHandler(aj(Id),aj(Hd)),undefined)}catch(a){a=vd(a);if(!gd(a,2))throw a}}return c}
function uc(a,b,c){var d;if(!b){throw new Dg('Cannot add a handler with a null type')}if(!c){throw new Dg('Cannot add a null handler')}a.c>0?tc(a,new Jf(a,b,c)):(d=xc(a,b),d.H(c),undefined);return new Hf}
function Pg(a){var b,c,d,e;b=0;d=a.length;e=d-4;c=0;while(c<e){b=a.charCodeAt(c+3)+31*(a.charCodeAt(c+2)+31*(a.charCodeAt(c+1)+31*(a.charCodeAt(c)+31*b)))|0;c+=4}while(c<d){b=b*31+a.charCodeAt(c++)}return b|0}
function Ub(a){var b,c,d;b=a.c;if(b){return c=a.b,(c.clientX||0)-(d=b.getBoundingClientRect&&b.getBoundingClientRect(),d?d.left+Gb(b.ownerDocument.body):Jb(b))+Gb(b)+Gb(b.ownerDocument.body)}return a.b.clientX||0}
function Vb(a){var b,c,d;b=a.c;if(b){return c=a.b,(c.clientY||0)-(d=b.getBoundingClientRect&&b.getBoundingClientRect(),d?d.top+(b.ownerDocument.body.scrollTop||0):Kb(b))+(b.scrollTop||0)+(b.ownerDocument.body.scrollTop||0)}return a.b.clientY||0}
function wf(a,b,c){var d,e;if(c<0||c>a.c){throw new zg}if(a.c==a.b.length){e=Wc(md,{20:1},9,a.b.length*2,0);for(d=0;d<a.b.length;++d){Zc(e,d,a.b[d])}a.b=e}++a.c;for(d=a.c-1;d>c;--d){Zc(a.b,d,a.b[d-1])}Zc(a.b,c,b)}
function mg(a,b,c,d){var e,f,g,h;e=jg(a,b);f=dg(a,e);g=Wc(jd,{20:1},-1,4,1);h=Wc(jd,{20:1},-1,4,1);g[0]=f[0].b;g[1]=f[1].b;g[2]=f[2].b;g[3]=f[3].b;h[0]=f[0].c;h[1]=f[1].c;h[2]=f[2].c;h[3]=f[3].c;return lg(g,h,c,d)}
function gf(a){cf();var b,c;c=ed(gh(af,a),10);b=null;if(a!=null){if(!(b=$doc.getElementById(a))){return null}}if(c){if(!b||c.o==b){return c}}af.e==0&&Ed(new mf);!b?(c=new of):(c=new df(b));kh(af,a,c);Ni(bf,c);return c}
function u(a){var b;if(a.i){throw new xg("Should only call onAttach when the widget is detached from the browser's document")}a.i=true;a.o.__listener=a;b=a.j;a.j=-1;b>0&&(a.j==-1?Ad(a.o,b|(a.o.__eventBits||0)):(a.j|=b));a.r()}
function Vf(a,b,c){var d,e,f;if(!c)return null;if(b.b==c.b||b.b.length<=c.b.length){return null}else{f=a.b.createElement(Tj);e=Uf(b,c);d='even';(b.c+b.d)%2!=0&&(d='odd');f.src=a.b.URL.substr(0,a.b.URL.indexOf(Uj)-0)+Vj+c.b+'/border_'+e+'_'+d+Wj;return f}}
function eg(a){var b;a.p=Xc([td,pd],[{20:1},{11:1,20:1}],[11,28],[a.c,a.b],0,2,0);a.e=~~(a.b/2)*a.n+~~(a.n/2);a.d=~~(a.o/2);for(b=0;b<a.q.length;++b){Zc(a.p[a.q[b].c],a.q[b].d,a.q[b])}for(b=0;b<a.q.length;++b){hg(a,a.q[b])}for(b=0;b<a.q.length;++b){gg(a,a.q[b])}}
function Uf(a,b){if(a.c+1==b.c&&a.d+1==b.d){return 'E'}if(a.c-1==b.c&&a.d-1==b.d){return 'W'}if(a.c==b.c&&a.d+1==b.d){return 'SE'}if(a.c==b.c&&a.d-1==b.d){return 'NW'}if(a.c-1==b.c&&a.d==b.d){return 'SW'}if(a.c+1==b.c&&a.d==b.d){return 'NE'}if(a.c+1==b.c&&a.d-1==b.d){return 'N'}if(a.c-1==b.c&&a.d+1==b.d){return 'S'}return bj}
function wc(b,c){var a,d,e,f,g,h,i;if(!c){throw new Dg('Cannot fire null event')}try{++b.c;g=yc(b,c.A());d=null;h=b.d?g.S(g.J()):g.R();while(b.d?h.c>0:h.c<h.d.J()){f=b.d?hi(h):ci(h);try{c.z(ed(f,12))}catch(a){a=vd(a);if(gd(a,7)){e=a;!d&&(d=new Oi);i=kh(d.b,e,d)}else throw a}}if(d){throw new Fc(d)}}finally{--b.c;b.c==0&&zc(b)}}
function ae(){var d=$wnd.onbeforeunload;var e=$wnd.onunload;$wnd.onbeforeunload=function(a){var b,c;try{b=aj(Id)()}finally{c=d&&d(a)}if(b!=null){return b}if(c!=null){return c}};$wnd.onunload=aj(function(a){try{Cd&&lc((!Dd&&(Dd=new Qd),Dd))}finally{e&&e(a);$wnd.onresize=null;$wnd.onscroll=null;$wnd.onbeforeunload=null;$wnd.onunload=null}})}
function ud(){var a;!!$stats&&wd('com.google.gwt.user.client.UserAgentAsserter');a=Bd();Gg(nj,a)||($wnd.alert('ERROR: Possible problem with your *.gwt.xml module file.\nThe compile time user.agent value (safari) does not match the runtime user.agent value ('+a+'). Expect more errors.\n'),undefined);!!$stats&&wd('gwt.board.demo.client.BoardDemo');Lf(new Mf)}
function hg(a,b){var c,d,e;c=jg(a,b);e=dg(a,c);if(a.j){a.f.beginPath();a.f.moveTo(e[0].b,e[0].c);a.f.lineTo(e[1].b,e[1].c);a.f.lineTo(e[2].b,e[2].c);a.f.lineTo(e[3].b,e[3].c);a.f.lineTo(e[0].b,e[0].c);a.f.stroke();a.f.closePath()}d=Wf(a.k,b);a.f.drawImage(d,e[0].b,e[1].c,d.width,d.height);a.g&&fg(a,b,e[0].b,e[1].c);a.i&&(a.f.strokeText(bj+b.c+Sj+b.d,c.b,c.c),undefined)}
function fg(a,b,c,d){var e,f;e=Wc(kd,{20:1},0,8,0);e[0]=Vf(a.k,b,ig(a,b.c-1,b.d-1));e[1]=Vf(a.k,b,ig(a,b.c,b.d-1));e[2]=Vf(a.k,b,ig(a,b.c+1,b.d-1));e[3]=Vf(a.k,b,ig(a,b.c-1,b.d+1));e[4]=Vf(a.k,b,ig(a,b.c,b.d+1));e[5]=Vf(a.k,b,ig(a,b.c+1,b.d+1));e[6]=Vf(a.k,b,ig(a,b.c+1,b.d));e[7]=Vf(a.k,b,ig(a,b.c-1,b.d));for(f=0;f<e.length;++f){!!e[f]&&(a.f.drawImage(e[f],c,d,e[f].width,e[f].height),undefined)}}
function Kb(a){if(a.offsetTop==null){return 0}var b=0;var c=a.ownerDocument;var d=a.parentNode;if(d){while(d.offsetParent){b-=d.scrollTop;d=d.parentNode}}while(a){b+=a.offsetTop;if(c.defaultView.getComputedStyle(a,bj)[gj]==hj){b+=c.body.scrollTop;return b}var e=a.offsetParent;e&&$wnd.devicePixelRatio&&(b+=parseInt(c.defaultView.getComputedStyle(e,bj).getPropertyValue('border-top-width')));if(e&&e.tagName==ij&&a.style.position==jj){break}a=e}return b}
function Jb(a){if(a.offsetLeft==null){return 0}var b=0;var c=a.ownerDocument;var d=a.parentNode;if(d){while(d.offsetParent){b-=d.scrollLeft;c.defaultView.getComputedStyle(d,bj).getPropertyValue('direction')==fj&&(b+=d.scrollWidth-d.clientWidth);d=d.parentNode}}while(a){b+=a.offsetLeft;if(c.defaultView.getComputedStyle(a,bj)[gj]==hj){b+=c.body.scrollLeft;return b}var e=a.offsetParent;e&&$wnd.devicePixelRatio&&(b+=parseInt(c.defaultView.getComputedStyle(e,bj).getPropertyValue('border-left-width')));if(e&&e.tagName==ij&&a.style.position==jj){break}a=e}return b}
function Lf(a){var b,c,d,e,f;a.d=G();if(!a.d){ke((cf(),gf(null)),new Ze);return}a.d.o[Jj]='mainCanvas';a.d.o.style['width']='1020px';a.d.o.width=1020;a.d.o.style['height']='600px';a.d.o.height=600;a.e=a.d.o.getContext(M);a.e.strokeStyle='White';c=new Yf($doc);f=Wc(nd,{11:1,20:1},26,64,0);e=0;for(b=0;b<8;++b){for(d=0;d<8;++d){f[e]=new _f(b,d);++e}}f[10].b='desert';f[25].b=Rj;f[38].b=Rj;f[39].b=Rj;f[43].b=Rj;f[44].b=Rj;a.c=new ng(f,a.e,c);Te(a.b,a.f);Te(a.b,a.i);qf(a.g,a.b);qf(a.g,a.d);ke(gf('boardDemo'),a.g);s(a.f,new Of(a),(Xb(),Xb(),Wb));s(a.d,new Rf(a),Wb)}
function Bd(){var b=navigator.userAgent.toLowerCase();var c=function(a){return parseInt(a[1])*1000+parseInt(a[2])};if(function(){return b.indexOf(oj)!=-1}())return oj;if(function(){return b.indexOf('webkit')!=-1}())return nj;if(function(){return b.indexOf(pj)!=-1&&$doc.documentMode>=9}())return 'ie9';if(function(){return b.indexOf(pj)!=-1&&$doc.documentMode>=8}())return 'ie8';if(function(){var a=/msie ([0-9]+)\.([0-9]+)/.exec(b);if(a&&a.length==3)return c(a)>=6000}())return 'ie6';if(function(){return b.indexOf('gecko')!=-1}())return 'gecko1_8';return 'unknown'}
function Sd(a){switch(a){case 'blur':return 4096;case 'change':return 1024;case kj:return 1;case qj:return 2;case 'focus':return 2048;case rj:return 128;case sj:return 256;case tj:return 512;case 'load':return 32768;case 'losecapture':return 8192;case uj:return 4;case vj:return 64;case wj:return 32;case xj:return 16;case yj:return 8;case 'scroll':return 16384;case 'error':return 65536;case 'DOMMouseScroll':case zj:return 131072;case 'contextmenu':return 262144;case 'paste':return 524288;case Aj:return 1048576;case Bj:return 2097152;case Cj:return 4194304;case Dj:return 8388608;case Ej:return 16777216;case Fj:return 33554432;case Gj:return 67108864;case 'ended':return 134217728;case 'progress':return 268435456;case 'canplaythrough':return 536870912;default:return -1;}}
function $d(){Wd=aj(function(a){return true});Yd=aj(function(a){var b,c=this;while(c&&!(b=c.__listener)){c=c.parentNode}c&&c.nodeType!=1&&(c=null);b&&Ud(b)&&zd(a,c,b)});Zd=aj(function(a){this.__gwtLastUnhandledEvent=a.type;Yd.call(this,a)});Xd=aj(function(a){var b=Wd;if(b(a)){var c=Vd;if(c&&c.__listener){if(Ud(c.__listener)){zd(a,c,c.__listener);a.stopPropagation()}}}});$wnd.addEventListener(kj,Xd,true);$wnd.addEventListener(qj,Xd,true);$wnd.addEventListener(uj,Xd,true);$wnd.addEventListener(yj,Xd,true);$wnd.addEventListener(vj,Xd,true);$wnd.addEventListener(xj,Xd,true);$wnd.addEventListener(wj,Xd,true);$wnd.addEventListener(zj,Xd,true);$wnd.addEventListener(rj,Wd,true);$wnd.addEventListener(tj,Wd,true);$wnd.addEventListener(sj,Wd,true);$wnd.addEventListener(Aj,Xd,true);$wnd.addEventListener(Bj,Xd,true);$wnd.addEventListener(Cj,Xd,true);$wnd.addEventListener(Dj,Xd,true);$wnd.addEventListener(Ej,Xd,true);$wnd.addEventListener(Fj,Xd,true);$wnd.addEventListener(Gj,Xd,true)}
function _d(a,b){var c=(a.__eventBits||0)^b;a.__eventBits=b;if(!c)return;c&1&&(a.onclick=b&1?Yd:null);c&2&&(a.ondblclick=b&2?Yd:null);c&4&&(a.onmousedown=b&4?Yd:null);c&8&&(a.onmouseup=b&8?Yd:null);c&16&&(a.onmouseover=b&16?Yd:null);c&32&&(a.onmouseout=b&32?Yd:null);c&64&&(a.onmousemove=b&64?Yd:null);c&128&&(a.onkeydown=b&128?Yd:null);c&256&&(a.onkeypress=b&256?Yd:null);c&512&&(a.onkeyup=b&512?Yd:null);c&1024&&(a.onchange=b&1024?Yd:null);c&2048&&(a.onfocus=b&2048?Yd:null);c&4096&&(a.onblur=b&4096?Yd:null);c&8192&&(a.onlosecapture=b&8192?Yd:null);c&16384&&(a.onscroll=b&16384?Yd:null);c&32768&&(a.onload=b&32768?Zd:null);c&65536&&(a.onerror=b&65536?Yd:null);c&131072&&(a.onmousewheel=b&131072?Yd:null);c&262144&&(a.oncontextmenu=b&262144?Yd:null);c&524288&&(a.onpaste=b&524288?Yd:null);c&1048576&&(a.ontouchstart=b&1048576?Yd:null);c&2097152&&(a.ontouchmove=b&2097152?Yd:null);c&4194304&&(a.ontouchend=b&4194304?Yd:null);c&8388608&&(a.ontouchcancel=b&8388608?Yd:null);c&16777216&&(a.ongesturestart=b&16777216?Yd:null);c&33554432&&(a.ongesturechange=b&33554432?Yd:null);c&67108864&&(a.ongestureend=b&67108864?Yd:null)}
var bj='',Xj=' ',cj='(',Sj=',',Wj='.png',Uj='/',Pj='0',ej=':',ij='BODY',jj='absolute',Lj='align',dj='anonymous',Qj='cellPadding',Oj='cellSpacing',Jj='className',kj='click',qj='dblclick',lj='dir',hj='fixed',Fj='gesturechange',Gj='gestureend',Ej='gesturestart',Vj='images/tiles/',Tj='img',rj='keydown',sj='keypress',tj='keyup',Hj='left',mj='ltr',uj='mousedown',vj='mousemove',wj='mouseout',xj='mouseover',yj='mouseup',zj='mousewheel',pj='msie',oj='opera',Rj='plains',gj='position',fj='rtl',nj='safari',Kj='td',Ij='top',Dj='touchcancel',Cj='touchend',Bj='touchmove',Aj='touchstart',Nj='tr',Mj='verticalAlign';var _;_=p.prototype={};_.eQ=function q(a){return this===a};_.hC=function r(){return this.$H||(this.$H=++W)};_.tM=_i;_.cM={};_=o.prototype=new p;_.cM={25:1};_.o=null;_=n.prototype=new o;_.r=function z(){};_.s=function A(){};_.t=function B(){u(this)};_.u=function C(a){var b;switch(Sd(a.type)){case 16:case 32:b=a.relatedTarget;if(!!b&&Ib(this.o,b)){return}}Sb(a,this,this.o)};_.cM={8:1,9:1,17:1,18:1,19:1,25:1};_.i=false;_.j=0;_.k=null;_.n=null;_=m.prototype=new n;_.t=function D(){var a;u(this);a=Hb(this.o);-1==a&&(this.o.tabIndex=0,undefined)};_.cM={8:1,9:1,17:1,18:1,19:1,25:1};_=F.prototype=l.prototype=new m;_.cM={8:1,9:1,17:1,18:1,19:1,25:1};var E=null;_=I.prototype=new p;_.cM={};_=J.prototype=H.prototype=new I;_.cM={};var M='2d';_=Q.prototype=new p;_.cM={7:1,20:1};_=P.prototype=new Q;_.cM={7:1,20:1};_=O.prototype=new P;_.cM={2:1,7:1,20:1};_=T.prototype=N.prototype=new O;_.cM={2:1,7:1,20:1};_.b=null;_=U.prototype=new p;_.cM={};var V=0,W=0;_=fb.prototype=ab.prototype=new U;_.cM={};_.b=null;_.c=null;var bb;_=ob.prototype=kb.prototype=new p;_.v=function pb(){var a={};var b=[];var c=arguments.callee.caller.caller;while(c){var d=this.w(c.toString());b.push(d);var e=ej+d;var f=a[e];if(f){var g,h;for(g=0,h=f.length;g<h;g++){if(f[g]===c){return b}}}(f||(a[e]=[])).push(c);c=c.caller}return b};_.w=function qb(a){return ib(a)};_.x=function rb(a){return []};_.cM={};_=tb.prototype=new kb;_.v=function vb(){return jb(this.x(nb()),this.y())};_.x=function wb(a){return ub(this,a)};_.y=function xb(){return 2};_.cM={};_=Ab.prototype=sb.prototype=new tb;_.v=function Bb(){return yb(this)};_.w=function Cb(a){var b,c;if(a.length==0){return dj}c=Ig(a);c.indexOf('at ')==0&&(c=c.substr(3,c.length-3));b=c.indexOf('[');b==-1&&(b=c.indexOf(cj));if(b==-1){return dj}else{c=Ig(c.substr(0,b-0))}b=c.indexOf(String.fromCharCode(46));b!=-1&&(c=c.substr(b+1,c.length-(b+1)));return c.length>0?c:dj};_.x=function Db(a){return zb(this,a)};_.y=function Eb(){return 3};_.cM={};_=Qb.prototype=new p;_.cM={};_.e=null;_=Pb.prototype=new Qb;_.cM={};_.d=false;_=Ob.prototype=new Pb;_.A=function Tb(){return Xb(),Wb};_.cM={};_.b=null;_.c=null;var Rb=null;_=Nb.prototype=new Ob;_.cM={};_=Mb.prototype=new Nb;_.cM={};_=Yb.prototype=Lb.prototype=new Mb;_.z=function Zb(a){ed(a,3).B(this)};_.cM={};var Wb;_=ac.prototype=new p;_.hC=function cc(){return this.d};_.cM={};_.d=0;var bc=0;_=dc.prototype=_b.prototype=new ac;_.cM={};_=ec.prototype=$b.prototype=new _b;_.cM={4:1};_.b=null;_.c=null;_=gc.prototype=fc.prototype=new p;_.cM={};_.b=null;_=jc.prototype=hc.prototype=new Pb;_.z=function kc(a){ed(a,5);ff()};_.A=function mc(){return ic};_.cM={};var ic=null;_=pc.prototype=nc.prototype=new p;_.cM={18:1};_.b=null;_.c=null;_=sc.prototype=new p;_.cM={};_=rc.prototype=new sc;_.cM={};_.b=null;_.c=0;_.d=false;_=Ac.prototype=qc.prototype=new rc;_.cM={};_=Cc.prototype=Bc.prototype=new p;_.cM={};_=Fc.prototype=Ec.prototype=new O;_.cM={2:1,6:1,7:1,20:1};_.b=null;_=Gc.prototype=Dc.prototype=new Ec;_.cM={2:1,6:1,7:1,20:1};_=Kc.prototype=new p;_.eQ=function Lc(a){return this===a};_.hC=function Mc(){return this.$H||(this.$H=++W)};_.cM={20:1,21:1,29:1};_.b=0;_=Rc.prototype=Jc.prototype=new Kc;_.cM={20:1,21:1,23:1,29:1};var Nc,Oc,Pc;_=Tc.prototype=Sc.prototype=new p;_.cM={};_.aC=null;_.qI=0;var $c,_c;var xd=null,yd=null;var Cd=false,Dd=null;_=Md.prototype=Jd.prototype=new Pb;_.z=function Nd(a){id(a);null.T()};
--></script>
<script><!--
_.A=function Od(){return Kd};_.cM={};var Kd;_=Qd.prototype=Pd.prototype=new nc;_.cM={18:1};var Rd=false;var Vd=null,Wd=null,Xd=null,Yd=null,Zd=null;_=de.prototype=new n;_.r=function ee(){se(this,(qe(),oe))};_.s=function fe(){se(this,(qe(),pe))};_.cM={8:1,9:1,17:1,18:1,19:1,25:1};_=ce.prototype=new de;_.C=function ie(){return new Df(this.g)};_.D=function je(a){return he(this,a)};_.cM={8:1,9:1,17:1,18:1,19:1,25:1};_=be.prototype=new ce;_.D=function me(a){var b;b=he(this,a);b&&le(a.o);return b};_.cM={8:1,9:1,17:1,18:1,19:1,25:1};_=re.prototype=ne.prototype=new Dc;_.cM={2:1,6:1,7:1,20:1};var oe,pe;_=ue.prototype=te.prototype=new p;_.E=function ve(a){a.t()};_.cM={};_=xe.prototype=we.prototype=new p;_.E=function ye(a){v(a)};_.cM={};_=Ae.prototype=new m;_.cM={8:1,9:1,17:1,18:1,19:1,25:1};_=Be.prototype=ze.prototype=new Ae;_.cM={8:1,9:1,17:1,18:1,19:1,25:1};_=Ce.prototype=new ce;_.cM={8:1,9:1,17:1,18:1,19:1,25:1};_.e=null;_.f=null;_=Ge.prototype=Ee.prototype=new p;_.cM={};_.b=null;_.c=null;_.d=null;var He,Ie,Je;_=Le.prototype=new p;_.cM={};_=Ne.prototype=Me.prototype=new Le;_.cM={};_.b=null;var Oe;_=Re.prototype=Qe.prototype=new p;_.cM={};_.b=null;_=Ue.prototype=Se.prototype=new Ce;_.D=function Ve(a){var b,c,d;c=(d=a.o.parentNode,(!d||d.nodeType!=1)&&(d=null),d);b=he(this,a);b&&this.c.removeChild(c);return b};_.cM={8:1,9:1,17:1,18:1,19:1,25:1};_.c=null;_=Xe.prototype=new n;_.cM={8:1,9:1,17:1,18:1,19:1,25:1};_.b=null;_=Ze.prototype=Ye.prototype=We.prototype=new Xe;_.cM={8:1,9:1,17:1,18:1,19:1,25:1};_=df.prototype=$e.prototype=new be;_.cM={8:1,9:1,10:1,17:1,18:1,19:1,25:1};var _e,af,bf;_=jf.prototype=hf.prototype=new p;_.E=function kf(a){a.i&&v(a)};_.cM={};_=mf.prototype=lf.prototype=new p;_.cM={5:1,12:1};_=of.prototype=nf.prototype=new $e;_.cM={8:1,9:1,10:1,17:1,18:1,19:1,25:1};_=rf.prototype=pf.prototype=new Ce;_.D=function sf(a){var b,c,d;c=(d=a.o.parentNode,(!d||d.nodeType!=1)&&(d=null),d);b=he(this,a);b&&this.e.removeChild(Fb(c));return b};_.cM={8:1,9:1,17:1,18:1,19:1,25:1};_=zf.prototype=tf.prototype=new p;_.C=function Af(){return new Df(this)};_.cM={};_.b=null;_.c=0;_=Df.prototype=Bf.prototype=new p;_.F=function Ef(){return this.b<this.c.c-1};_.G=function Ff(){return Cf(this)};_.cM={};_.b=-1;_.c=null;_=Hf.prototype=Gf.prototype=new p;_.cM={};_=Jf.prototype=If.prototype=new p;_.cM={15:1};_.b=null;_.c=null;_.d=null;_=Mf.prototype=Kf.prototype=new p;_.cM={};_.c=null;_.d=null;_.e=null;_=Of.prototype=Nf.prototype=new p;_.B=function Pf(a){eg(this.b.c)};_.cM={3:1,12:1};_.b=null;_=Rf.prototype=Qf.prototype=new p;_.B=function Sf(a){var b,c;c=kg(this.b.c,Ub(a),Vb(a));if(c){b=bj+c.c+Sj+c.d;Fe(this.b.i.b,' position : '+b)}else{Fe(this.b.i.b,' position : Out of Board')}};_.cM={3:1,12:1};_.b=null;_=Yf.prototype=Tf.prototype=new p;_.cM={};_.b=null;_=_f.prototype=Zf.prototype=new p;_.cM={26:1,28:1};_.b=bj;_.c=0;_.d=0;_=bg.prototype=ag.prototype=new p;_.cM={22:1};_=ng.prototype=cg.prototype=new p;_.cM={};_.b=0;_.c=0;_.d=0;_.e=0;_.f=null;_.g=false;_.i=false;_.j=false;_.k=null;_.n=0;_.o=0;_.p=null;_.q=null;_=pg.prototype=og.prototype=new p;_.cM={27:1};_.b=0;_.c=0;_=rg.prototype=qg.prototype=new O;_.cM={2:1,7:1,20:1};_=tg.prototype=sg.prototype=new p;_.cM={};_=vg.prototype=ug.prototype=new O;_.cM={2:1,7:1,20:1};_=xg.prototype=wg.prototype=new O;_.cM={2:1,7:1,20:1};_=Ag.prototype=zg.prototype=yg.prototype=new O;_.cM={2:1,7:1,20:1};_=Dg.prototype=Cg.prototype=Bg.prototype=new O;_.cM={2:1,7:1,20:1};_=Fg.prototype=Eg.prototype=new p;_.cM={20:1,30:1};_=String.prototype;_.eQ=function Jg(a){return Gg(this,a)};_.hC=function Kg(){return Qg(this)};_.cM={1:1,20:1,21:1};var Lg,Mg=0,Ng;_=Tg.prototype=Sg.prototype=new O;_.cM={2:1,7:1,20:1};_=Ug.prototype=new p;_.H=function Wg(a){throw new Tg('Add not supported on this collection')};_.I=function Xg(a){var b;b=Vg(this.C(),a);return !!b};_.K=function Yg(a){var b,c,d;d=this.J();a.length<d&&(a=Uc(a,d));c=this.C();for(b=0;b<d;++b){Zc(a,b,c.G())}a.length>d&&Zc(a,d,null);return a};_.cM={};_=$g.prototype=new p;_.eQ=function ah(a){var b,c,d,e,f;if(a===this){return true}if(!(a!=null&&a.cM&&!!a.cM[13])){return false}e=ed(a,13);if(this.e!=e.e){return false}for(c=new Ch((new xh(e)).b);bi(c.b);){b=ed(ci(c.b),31);d=b.M();f=b.N();if(!(d==null?this.d:d!=null&&d.cM&&!!d.cM[1]?ej+ed(d,1) in this.f:ih(this,d,~~L(d)))){return false}if(!$i(f,d==null?this.c:d!=null&&d.cM&&!!d.cM[1]?this.f[ej+ed(d,1)]:hh(this,d,~~L(d)))){return false}}return true};_.hC=function bh(){var a,b,c;c=0;for(b=new Ch((new xh(this)).b);bi(b.b);){a=ed(ci(b.b),31);c+=a.hC();c=~~c}return c};_.cM={13:1};_=Zg.prototype=new $g;_.L=function rh(a,b){return (a==null?null:a)===(b==null?null:b)||a!=null&&K(a,b)};_.cM={13:1};_.b=null;_.c=null;_.d=false;_.e=0;_.f=null;_=th.prototype=new Ug;_.eQ=function uh(a){var b,c,d;if(a===this){return true}if(!(a!=null&&a.cM&&!!a.cM[32])){return false}c=ed(a,32);if(c.J()!=this.J()){return false}for(b=c.C();b.F();){d=b.G();if(!this.I(d)){return false}}return true};_.hC=function vh(){var a,b,c;a=0;for(b=this.C();b.F();){c=b.G();if(c!=null){a+=L(c);a=~~a}}return a};_.cM={32:1};_=xh.prototype=sh.prototype=new th;_.I=function yh(a){return wh(this,a)};_.C=function zh(){return new Ch(this.b)};_.J=function Ah(){return this.b.e};_.cM={32:1};_.b=null;_=Ch.prototype=Bh.prototype=new p;_.F=function Dh(){return bi(this.b)};_.G=function Eh(){return ed(ci(this.b),31)};_.cM={};_.b=null;_=Gh.prototype=new p;_.eQ=function Hh(a){var b;if(a!=null&&a.cM&&!!a.cM[31]){b=ed(a,31);if($i(this.M(),b.M())&&$i(this.N(),b.N())){return true}}return false};_.hC=function Ih(){var a,b;a=0;b=0;this.M()!=null&&(a=L(this.M()));this.N()!=null&&(b=L(this.N()));return a^b};_.cM={31:1};_=Jh.prototype=Fh.prototype=new Gh;_.M=function Kh(){return null};_.N=function Lh(){return this.b.c};_.O=function Mh(a){return mh(this.b,a)};_.cM={31:1};_.b=null;_=Oh.prototype=Nh.prototype=new Gh;_.M=function Ph(){return this.b};_.N=function Qh(){return this.c.f[ej+this.b]};_.O=function Rh(a){return nh(this.c,this.b,a)};_.cM={31:1};_.b=null;_.c=null;_=Sh.prototype=new Ug;_.H=function Th(a){this.P(this.J(),a);return true};_.P=function Uh(a,b){throw new Tg('Add not supported on this list')};_.eQ=function Wh(a){var b,c,d,e,f;if(a===this){return true}if(!(a!=null&&a.cM&&!!a.cM[14])){return false}f=ed(a,14);if(this.J()!=f.J()){return false}d=new di(this);e=f.C();while(d.c<d.d.J()){b=ci(d);c=ci(e);if(!(b==null?c==null:K(b,c))){return false}}return true};_.hC=function Xh(){var a,b,c;b=1;a=new di(this);while(a.c<a.d.J()){c=ci(a);b=31*b+(c==null?0:L(c));b=~~b}return b};_.C=function Zh(){return new di(this)};_.R=function $h(){return new ii(this,0)};_.S=function _h(a){return new ii(this,a)};_.cM={14:1};_=di.prototype=ai.prototype=new p;_.F=function ei(){return this.c<this.d.J()};_.G=function fi(){return ci(this)};_.cM={};_.c=0;_.d=null;_=ii.prototype=gi.prototype=new ai;_.cM={};_.b=null;_=ki.prototype=ji.prototype=new th;_.I=function li(a){return fh(this.b,a)};_.C=function mi(){var a;return a=new Ch(this.c.b),new pi(a)};_.J=function ni(){return this.c.b.e};_.cM={32:1};_.b=null;_.c=null;_=pi.prototype=oi.prototype=new p;_.F=function qi(){return bi(this.b.b)};_.G=function ri(){var a;a=ed(ci(this.b.b),31);return a.M()};_.cM={};_.b=null;_=vi.prototype=si.prototype=new Sh;_.H=function wi(a){return Zc(this.b,this.c++,a),true};_.P=function xi(a,b){(a<0||a>this.c)&&Yh(a,this.c);this.b.splice(a,0,b);++this.c};_.I=function yi(a){return ui(this,a,0)!=-1};_.Q=function zi(a){return Vh(a,this.c),this.b[a]};_.J=function Ai(){return this.c};_.K=function Bi(a){var b,c,d;a.length<this.c&&(a=(c=a,d=Vc(0,this.c),Yc(c.aC,c.cM,c.qI,d),d));for(b=0;b<this.c;++b){Zc(a,b,this.b[b])}a.length>this.c&&Zc(a,this.c,null);return a};_.cM={14:1,20:1};_.c=0;var Ci;_=Fi.prototype=Ei.prototype=new Sh;_.I=function Gi(a){return false};_.Q=function Hi(a){throw new zg};_.J=function Ii(){return 0};_.cM={14:1,20:1};_=Li.prototype=Ji.prototype=new Zg;_.cM={13:1,20:1};_=Oi.prototype=Mi.prototype=new th;_.H=function Pi(a){var b;return b=kh(this.b,a,this),b==null};_.I=function Qi(a){return fh(this.b,a)};_.C=function Ri(){var a;return a=new Ch(_g(this.b).c.b),new pi(a)};_.J=function Si(){return this.b.e};_.cM={20:1,32:1};_.b=null;_=Ui.prototype=Ti.prototype=new Gh;_.M=function Vi(){return this.b};_.N=function Wi(){return this.c};_.O=function Xi(a){var b;b=this.c;this.c=a;return b};_.cM={31:1};_.b=null;_.c=null;_=Zi.prototype=Yi.prototype=new O;_.cM={2:1,7:1,20:1};var aj=Z;var jd=new tg,rd=new tg,ld=new tg,md=new tg,sd=new tg,nd=new tg,pd=new tg,td=new tg,kd=new tg,od=new tg,qd=new tg;$stats && $stats({moduleName:'boarddemo',sessionId:$sessionId,subSystem:'startup',evtGroup:'moduleStartup',millis:(new Date()).getTime(),type:'moduleEvalEnd'});if ($wnd.boarddemo) $wnd.boarddemo.onScriptLoad();
--></script></body></html>